package com.ayoka.adapter;

import android.view.View;

import com.ayoka.R;
import com.jcp.baselibrary.brvah.BaseQuickAdapter;
import com.jcp.baselibrary.utils.MyLogger;
import com.tencent.timsdk.adapter.ChatAdapter;
import com.tencent.timsdk.model.Message;

import java.util.List;

/**
 * Created by jinchunping on 2018/4/11.
 */

public class CustomerServiceMessageAdapter extends BaseQuickAdapter<Message, ChatAdapter.ViewHolder> {

    public CustomerServiceMessageAdapter() {
        super(R.layout.item_message, null);
    }

    @Override
    protected void convert(final ChatAdapter.ViewHolder holder, Message item) {
        item.showMessage(holder, mContext);
    }

    @Override
    protected ChatAdapter.ViewHolder createBaseViewHolder(View view) {
        return new ChatAdapter.ViewHolder(view);
    }

}
